package com.witframework.web.tag.tab;

public class PanelBody
{
  private String content = null;
  private String className = null;
  private String style = null;

  public void setContent(String paramString)
  {
    this.content = paramString;
  }

  public String getContent()
  {
    return this.content;
  }

  public void setStyle(String paramString)
  {
    this.style = paramString;
  }

  public String getStyle()
  {
    return this.style;
  }

  public void setClassName(String paramString)
  {
    this.className = paramString;
  }

  public String getClassName()
  {
    return this.className;
  }

  public String getHtmlCode()
  {
    StringBuffer localStringBuffer = new StringBuffer("");
    if ((this.className != null) || (this.style != null))
    {
      localStringBuffer.append("<div");
      if (this.className != null)
      {
        localStringBuffer.append(" class=\"");
        localStringBuffer.append(this.className);
        localStringBuffer.append("\"");
      }
      if (this.style != null)
      {
        localStringBuffer.append(" style=\"");
        localStringBuffer.append(this.style);
        localStringBuffer.append("\"");
      }
      localStringBuffer.append(">");
      if (this.content != null)
        localStringBuffer.append(this.content);
      localStringBuffer.append("</div>\n");
    }
    else if (this.content != null)
    {
      localStringBuffer.append(this.content);
    }
    return localStringBuffer.toString();
  }
}